﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="Overview.aspx.cs" Inherits="ControlExplorer.samples.CellMerging.Overview" %>
<%@ Register Assembly="FarPoint.Web.Spread, Version=7.40.20132.1, Culture=neutral, PublicKeyToken=327c3516b1b18457"
    Namespace="FarPoint.Web.Spread" TagPrefix="FarPoint" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <div style="position: relative;width:780px;height:680px;overflow:hidden">
    <b>点击复选框切换 Spread 合并状态。</b>
    <br />
    <br />
    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" Text="以 ID 为依据进行合并（列合并）"
      Checked="True" Font-Bold="True" OnCheckedChanged="CheckBox1_CheckedChanged"></asp:CheckBox>
    <br />
    <FarPoint:FpSpread ID="FpSpread1" runat="server" Height="200px" Width="770px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" DesignString='<?xml version="1.0" encoding="utf-8"?><Spread />' EnableTheming="True">
      <Sheets>
        <FarPoint:SheetView SheetName="Sheet1"></FarPoint:SheetView>
      </Sheets>
      <TitleInfo BackColor="#E7EFF7" Font-Size="X-Large" HorizontalAlign="Center">
      </TitleInfo>
      <HierBar Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
        Font-Underline="False" />
      <Pager Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
        Font-Underline="False" />
    </FarPoint:FpSpread>
    <br />
    合并索引为 0 列的代码：<br />
    <font face="courier new" size="-1">FpSpread1.Sheets[0].SetColumnMerge(0, FarPoint.Web.Spread.Model.MergePolicy.Always)</font>
    <br />
    <br />
    <br />
    <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" Text="合并电视时间表（行合并）"
      Checked="True" Font-Bold="True" OnCheckedChanged="CheckBox2_CheckedChanged"></asp:CheckBox>
    <br />
    <FarPoint:FpSpread ID="FpSpread2" runat="server" Width="770px" Height="224px">
      <Sheets>
        <FarPoint:SheetView 
          SheetName="Sheet1">
          <RowHeader Width="40"></RowHeader>
        </FarPoint:SheetView>
      </Sheets>
    </FarPoint:FpSpread><br />
    合并所有行代码：<br />
    <font face="courier new" size="-1">FpSpread1.Sheets[0].SetRowMerge(-1, 
        FarPoint.Web.Spread.Model.MergePolicy.Always)</font>
  </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
